package com.wtwd.campus.entity;

/**
 * @author mjy
 * @date 2022/08/24
 * @description
 */
public class HbDxE15RyPushEntity {

    private String msgHead;

    private String imei;

    private String dName;

    private String mType;

    private String mClass;

    private String mTime;

    private String memo;

    private String tstamp;

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public String getmType() {
        return mType;
    }

    public void setmType(String mType) {
        this.mType = mType;
    }

    public String getmClass() {
        return mClass;
    }

    public void setmClass(String mClass) {
        this.mClass = mClass;
    }

    public String getmTime() {
        return mTime;
    }

    public void setmTime(String mTime) {
        this.mTime = mTime;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getTstamp() {
        return tstamp;
    }

    public void setTstamp(String tstamp) {
        this.tstamp = tstamp;
    }

    public String getMsgHead() {
        return msgHead;
    }

    public void setMsgHead(String msgHead) {
        this.msgHead = msgHead;
    }

    @Override
    public String toString() {
        return "HbDxE15RyPushEntity{" +
                "msgHead='" + msgHead + '\'' +
                ", imei='" + imei + '\'' +
                ", dName='" + dName + '\'' +
                ", mType='" + mType + '\'' +
                ", mClass='" + mClass + '\'' +
                ", mTime='" + mTime + '\'' +
                ", memo='" + memo + '\'' +
                ", tstamp='" + tstamp + '\'' +
                '}';
    }

    public enum PushTypeEnum {

        ALARM_TYPE("1", "告警"),
        MESSAGE_TYPE("2", "消息");


        /**
         * 推送类型
         */
        private String type;

        /**
         * 备注
         */
        private String msg;


        PushTypeEnum(String type, String msg) {
            this.type = type;
            this.msg = msg;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }


    public enum MessageType {
        SOS_MESSAGE("1", "SOS消息", "智能学生证【{0}】 位于{1},发出sos告警,时间{2}"),
        FENCE_MESSAGE("2", "安全围栏消息", "智能学生证【{0}】位于{1},围栏{2},触发{3}围栏报警,时间{4}"),
        LOW_BATTERY_MESSAGE("3", "低电量消息", "智能学生证【{0}】电量低于15%"),
        START_UP_MESSAGE("6", "设备开机提醒消息", "智能学生证【{0}】开机"),
        START_DOWN_MESSAGE("7", "设备关机提醒消息", "智能学生证【{0}】关机");
        /**
         * 消息类型
         */
        private String type;

        /**
         * 备注
         */
        private String msg;


        /**
         * 模板
         */
        private String template;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        MessageType(String type, String msg, String template) {
            this.type = type;
            this.msg = msg;
            this.template = template;
        }

        public String getTemplate() {
            return template;
        }

        public void setTemplate(String template) {
            this.template = template;
        }

        @Override
        public String toString() {
            return "MessageType{" +
                    "type='" + type + '\'' +
                    ", msg='" + msg + '\'' +
                    ", template='" + template + '\'' +
                    '}';
        }
    }


}
